<%-- 
    Document   : fonts
    Created on : Nov 20, 2012, 3:48:41 PM
    Author     : tuandn
--%>

<%@page pageEncoding="UTF-8" language="java" import="java.awt.*"%>
<%@page contentType="text/html;charset=UTF-8"%>
<html>
<head>
<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
	<%
		GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();
		Font[] fonts = e.getAllFonts(); // Get the fonts
		int count = 0;
		for (Font f : fonts) {
			out.println(f.getFontName());
			out.println("<br/>");
			count++;
		}
		out.println(count);
	%>
</body>
</html>